<template>
  <div class="dashboard-container">
    <div class="dashboard-text">
      <el-row type="flex" justify="center">
        <el-card style="width:45%">
          <histogram />
        </el-card>
        <el-card style="width:45%;margin-left:30px">
          <PieChart />
        </el-card>
      </el-row>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import histogram from './components/histogram.vue'
import PieChart from './components/PieChart.vue'
export default {
  name: 'Dashboard',
  components: { histogram, PieChart },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
    // justify-content: space-evenly;
  }
}
</style>
